package org.wcms.surrounded.web;

import org.wcms.surrounded.modules.SurroundedGeneralModule;
import org.wcms.surrounded.modules.SurroundedPersistenceModule;
import org.wcms.surrounded.modules.SurroundedServletModule;

import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.servlet.GuiceServletContextListener;

public class SurroundedServletContextListener extends GuiceServletContextListener {

    @Override
    protected Injector getInjector() {
        return Guice.createInjector(
            new SurroundedGeneralModule(),
            new SurroundedPersistenceModule(),
            new SurroundedServletModule()
        );
    }

}
